import request from '@/utils/request'

// 查询项目产品需求列表
export function listScmProjectProducts(query) {
  return request({
    url: '/scm/scmProjectProducts/list',
    method: 'get',
    params: query
  })
}

// 查询项目产品需求详细
export function getScmProjectProducts(id) {
  return request({
    url: '/scm/scmProjectProducts/' + id,
    method: 'get'
  })
}

// 新增项目产品需求
export function addScmProjectProducts(data) {
  return request({
    url: '/scm/scmProjectProducts',
    method: 'post',
    data: data
  })
}

// 修改项目产品需求
export function updateScmProjectProducts(data) {
  return request({
    url: '/scm/scmProjectProducts',
    method: 'put',
    data: data
  })
}

// 删除项目产品需求
export function delScmProjectProducts(id) {
  return request({
    url: '/scm/scmProjectProducts/' + id,
    method: 'delete'
  })
}
